@extends('admin.editor.layout.layout')
@section('content')
<div class="panel panel-default">
    <div class="panel-heading" style="padding-bottom:0px">
        作者列表
    </div>
    <!-- /.panel-heading -->
    <div class="panel-body">
        <div class="table-responsive">
            @if(session('success'))
            <div class="alert alert-success">
                {{session('success')}}
            </div>    
            @endif
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th  style="text-align:center;">ID</th>
                        <th  style="text-align:center;">作者名称</th>
                        <th  style="text-align:center;">书籍名称</th>
                        <th  style="text-align:center;">操作</th>
                    </tr>
                </thead>
                <tbody>
                @foreach($data as $k=>$v)
                    <tr style="text-align:center;">
                        <td>{{$v['id']}}</td>
                        <td>{{$v['name']}}</td>
                         <td>{{$v['b_name']}}</td>
                        <td>无操作</td>
                    </tr> 
                @endforeach    
                </tbody>
            </table>
        </div>
        <!-- /.table-responsive -->
    </div>
    <!-- /.panel-body -->
</div>

@endsection